<template>
    <div class="loading">
      <div class="column">
        <div class="container animation-6">
          <div class="shape shape1"></div>
          <div class="shape shape2"></div>
          <div class="shape shape3"></div>
          <div class="shape shape4"></div>
        </div>
      </div>
    </div>
</template>

<script>
    export default {
        name: "loading"
    }
</script>

<style scoped>
  .loading{
    position: absolute;
    top:0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 100000000;
  }
  .column{
    width: 30px;
    position: absolute;
    left:calc(50% - 15px);
    top:calc(40% - 15px)
  }
  .container {
    width: 30px;
    height: 30px;
    position: relative;
  }
  .container.animation-6 {
    -webkit-animation: rotation 1s infinite;
    animation: rotation 1s infinite;
  }
  .container.animation-6 .shape {
    width: 12px;
    height: 12px;
    border-radius: 2px;
  }
  .container .shape {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 1px;
  }
  .container .shape.shape1 {
    left: 0;
    background-color: #EEAC21;
  }
  .container .shape.shape2 {
    right: 0;
    background-color: #EEAC21;
  }
  .container .shape.shape3 {
    bottom: 0;
    background-color: #EEAC21;
  }
  .container .shape.shape4 {
    bottom: 0;
    right: 0;
    background-color: #EEAC21;
  }

  @-webkit-keyframes rotation {
    from {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

  .animation-6 .shape1 {
    -webkit-animation: animation6shape1 2s linear 0s infinite normal;
    animation: animation6shape1 2s linear 0s infinite normal;
  }

  @-webkit-keyframes animation6shape1 {
    0% {
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
    }
    25% {
      -webkit-transform: translate(0, 18px);
      transform: translate(0, 18px);
    }
    50% {
      -webkit-transform: translate(18px, 18px);
      transform: translate(18px, 18px);
    }
    75% {
      -webkit-transform: translate(18px, 0);
      transform: translate(18px, 0);
    }
  }

  @keyframes animation6shape1 {
    0% {
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
    }
    25% {
      -webkit-transform: translate(0, 18px);
      transform: translate(0, 18px);
    }
    50% {
      -webkit-transform: translate(18px, 18px);
      transform: translate(18px, 18px);
    }
    75% {
      -webkit-transform: translate(18px, 0);
      transform: translate(18px, 0);
    }
  }
  .animation-6 .shape2 {
    -webkit-animation: animation6shape2 2s linear 0s infinite normal;
    animation: animation6shape2 2s linear 0s infinite normal;
  }

  @-webkit-keyframes animation6shape2 {
    0% {
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
    }
    25% {
      -webkit-transform: translate(-18px, 0);
      transform: translate(-18px, 0);
    }
    50% {
      -webkit-transform: translate(-18px, 18px);
      transform: translate(-18px, 18px);
    }
    75% {
      -webkit-transform: translate(0, 18px);
      transform: translate(0, 18px);
    }
  }

  @keyframes animation6shape2 {
    0% {
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
    }
    25% {
      -webkit-transform: translate(-18px, 0);
      transform: translate(-18px, 0);
    }
    50% {
      -webkit-transform: translate(-18px, 18px);
      transform: translate(-18px, 18px);
    }
    75% {
      -webkit-transform: translate(0, 18px);
      transform: translate(0, 18px);
    }
  }
  .animation-6 .shape3 {
    -webkit-animation: animation6shape3 2s linear 0s infinite normal;
    animation: animation6shape3 2s linear 0s infinite normal;
  }

  @-webkit-keyframes animation6shape3 {
    0% {
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
    }
    25% {
      -webkit-transform: translate(18px, 0);
      transform: translate(18px, 0);
    }
    50% {
      -webkit-transform: translate(18px, -18px);
      transform: translate(18px, -18px);
    }
    75% {
      -webkit-transform: translate(0, -18px);
      transform: translate(0, -18px);
    }
  }
  .animation-6 .shape4 {
    -webkit-animation: animation6shape4 2s linear 0s infinite normal;
    animation: animation6shape4 2s linear 0s infinite normal;
  }

  @-webkit-keyframes animation6shape4 {
    0% {
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
    }
    25% {
      -webkit-transform: translate(0, -18px);
      transform: translate(0, -18px);
    }
    50% {
      -webkit-transform: translate(-18px, -18px);
      transform: translate(-18px, -18px);
    }
    75% {
      -webkit-transform: translate(-18px, 0);
      transform: translate(-18px, 0);
    }
  }
</style>
